package com.zxj.friend.domain.user.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * 用户提交代码
 */
@Data
@Schema(name = "UserSubmitDTO", description = "用户提交代码")
public class UserSubmitDTO {

    /** 竞赛ID  可选*/
    @Schema(name = "examId", description = "竞赛ID")
    private Long examId;

    /** 题目ID */
    @Schema(name = "questionId", description = "题目ID")
    @NotNull
    private Long questionId;

    /** 语言类型  (0: java  1: cpp 2: golang)*/
    @Schema(name = "programType", description = "语言类型")
    @NotNull
    private Integer programType;

    /** 用户代码 */
    @Schema(name = "userCode", description = "用户代码")
    @NotEmpty
    private String userCode;
}
